<?php
class PhraseHelper
{
	public static function getSynonymous($term)
	{
		$criteria = new CDbCriteria;

		$criteria->select = "avalue";

		$criteria->condition = 'akey=?';

		$criteria->params = array(addslashes($term));

		$ret = Phrases::model()->find($criteria);

		return $ret['avalue'];
	}
}